import { FBaseAd } from "../../core/ad/FBaseAd";
import { FIRewardAd } from "../../core/ad/FIRewardAd";
import { FResultFunc, FResultState } from "../../init";


export class FDevRewardAd extends FBaseAd implements FIRewardAd {

    private callback: FResultFunc = null;
    setResultFunc(func: FResultFunc): void {
        this.callback = func;
    }


    open(): void {
        if (this.callback) {
            this.callback(FResultState.YES)
        }
    }



}